import getEnumsManager from '@/common/enum';

export const ApplyStateEnum = getEnumsManager([
  { value: '0', text: '草稿', name: 'Drafted' },
  { value: '2', text: '办理中', name: 'Processing' },
  { value: '3', text: '已驳回', name: 'Rejected' },
  { value: '4', text: '已办结', name: 'Completed' },
  { value: '5', text: '已撤销', name: 'Revoked' },
  { value: '8', text: '已作废', name: 'Voided' }
]);

export const RevokeStateEnum = getEnumsManager([
  { value: '0', text: '草稿', name: 'Drafted' },
  { value: '2', text: '办理中', name: 'Processing' },
  { value: '3', text: '已驳回', name: 'Rejected' },
  { value: '4', text: '已办结', name: 'Completed' },
  { value: '8', text: '已作废', name: 'Voided' }
]);

export const PolicyStateEnum = getEnumsManager([
  { value: '0', text: '草稿', name: 'Drafted' },
  { value: '1', text: '已发布', name: 'Published' },
  { value: '2', text: '已撤销', name: 'Revoked' }
]);

export const ApplyTypeEnum = getEnumsManager([
  { value: 'HARD_USER_APPLY', text: '困难党员申请', name: 'Apply' },
  { value: 'HARD_USER_REVOKE', text: '困难党员撤销', name: 'Revoke' }
]);

export const DataTypeEnum = getEnumsManager([
  { value: '0', text: '待审名单', name: 'Processing' },
  { value: '1', text: '已审名单', name: 'Completed' }
]);